package com.guonl.model;

import java.util.ArrayList;
import java.util.List;

public class CountryNewExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CountryNewExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public CountryNewExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public CountryNewExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public static Criteria newAndCreateCriteria() {
        CountryNewExample example = new CountryNewExample();
        return example.createCriteria();
    }

    public CountryNewExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public CountryNewExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSerialNoIsNull() {
            addCriterion("serial_no is null");
            return (Criteria) this;
        }

        public Criteria andSerialNoIsNotNull() {
            addCriterion("serial_no is not null");
            return (Criteria) this;
        }

        public Criteria andSerialNoEqualTo(Integer value) {
            addCriterion("serial_no =", value, "serialNo");
            return (Criteria) this;
        }

        public Criteria andSerialNoEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("serial_no = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSerialNoNotEqualTo(Integer value) {
            addCriterion("serial_no <>", value, "serialNo");
            return (Criteria) this;
        }

        public Criteria andSerialNoNotEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("serial_no <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSerialNoGreaterThan(Integer value) {
            addCriterion("serial_no >", value, "serialNo");
            return (Criteria) this;
        }

        public Criteria andSerialNoGreaterThanColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("serial_no > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSerialNoGreaterThanOrEqualTo(Integer value) {
            addCriterion("serial_no >=", value, "serialNo");
            return (Criteria) this;
        }

        public Criteria andSerialNoGreaterThanOrEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("serial_no >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSerialNoLessThan(Integer value) {
            addCriterion("serial_no <", value, "serialNo");
            return (Criteria) this;
        }

        public Criteria andSerialNoLessThanColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("serial_no < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSerialNoLessThanOrEqualTo(Integer value) {
            addCriterion("serial_no <=", value, "serialNo");
            return (Criteria) this;
        }

        public Criteria andSerialNoLessThanOrEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("serial_no <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSerialNoIn(List<Integer> values) {
            addCriterion("serial_no in", values, "serialNo");
            return (Criteria) this;
        }

        public Criteria andSerialNoNotIn(List<Integer> values) {
            addCriterion("serial_no not in", values, "serialNo");
            return (Criteria) this;
        }

        public Criteria andSerialNoBetween(Integer value1, Integer value2) {
            addCriterion("serial_no between", value1, value2, "serialNo");
            return (Criteria) this;
        }

        public Criteria andSerialNoNotBetween(Integer value1, Integer value2) {
            addCriterion("serial_no not between", value1, value2, "serialNo");
            return (Criteria) this;
        }

        public Criteria andNameEnIsNull() {
            addCriterion("name_en is null");
            return (Criteria) this;
        }

        public Criteria andNameEnIsNotNull() {
            addCriterion("name_en is not null");
            return (Criteria) this;
        }

        public Criteria andNameEnEqualTo(String value) {
            addCriterion("name_en =", value, "nameEn");
            return (Criteria) this;
        }

        public Criteria andNameEnEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("name_en = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameEnNotEqualTo(String value) {
            addCriterion("name_en <>", value, "nameEn");
            return (Criteria) this;
        }

        public Criteria andNameEnNotEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("name_en <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameEnGreaterThan(String value) {
            addCriterion("name_en >", value, "nameEn");
            return (Criteria) this;
        }

        public Criteria andNameEnGreaterThanColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("name_en > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameEnGreaterThanOrEqualTo(String value) {
            addCriterion("name_en >=", value, "nameEn");
            return (Criteria) this;
        }

        public Criteria andNameEnGreaterThanOrEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("name_en >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameEnLessThan(String value) {
            addCriterion("name_en <", value, "nameEn");
            return (Criteria) this;
        }

        public Criteria andNameEnLessThanColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("name_en < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameEnLessThanOrEqualTo(String value) {
            addCriterion("name_en <=", value, "nameEn");
            return (Criteria) this;
        }

        public Criteria andNameEnLessThanOrEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("name_en <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameEnLike(String value) {
            addCriterion("name_en like", value, "nameEn");
            return (Criteria) this;
        }

        public Criteria andNameEnNotLike(String value) {
            addCriterion("name_en not like", value, "nameEn");
            return (Criteria) this;
        }

        public Criteria andNameEnIn(List<String> values) {
            addCriterion("name_en in", values, "nameEn");
            return (Criteria) this;
        }

        public Criteria andNameEnNotIn(List<String> values) {
            addCriterion("name_en not in", values, "nameEn");
            return (Criteria) this;
        }

        public Criteria andNameEnBetween(String value1, String value2) {
            addCriterion("name_en between", value1, value2, "nameEn");
            return (Criteria) this;
        }

        public Criteria andNameEnNotBetween(String value1, String value2) {
            addCriterion("name_en not between", value1, value2, "nameEn");
            return (Criteria) this;
        }

        public Criteria andNameZhIsNull() {
            addCriterion("name_zh is null");
            return (Criteria) this;
        }

        public Criteria andNameZhIsNotNull() {
            addCriterion("name_zh is not null");
            return (Criteria) this;
        }

        public Criteria andNameZhEqualTo(String value) {
            addCriterion("name_zh =", value, "nameZh");
            return (Criteria) this;
        }

        public Criteria andNameZhEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("name_zh = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameZhNotEqualTo(String value) {
            addCriterion("name_zh <>", value, "nameZh");
            return (Criteria) this;
        }

        public Criteria andNameZhNotEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("name_zh <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameZhGreaterThan(String value) {
            addCriterion("name_zh >", value, "nameZh");
            return (Criteria) this;
        }

        public Criteria andNameZhGreaterThanColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("name_zh > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameZhGreaterThanOrEqualTo(String value) {
            addCriterion("name_zh >=", value, "nameZh");
            return (Criteria) this;
        }

        public Criteria andNameZhGreaterThanOrEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("name_zh >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameZhLessThan(String value) {
            addCriterion("name_zh <", value, "nameZh");
            return (Criteria) this;
        }

        public Criteria andNameZhLessThanColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("name_zh < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameZhLessThanOrEqualTo(String value) {
            addCriterion("name_zh <=", value, "nameZh");
            return (Criteria) this;
        }

        public Criteria andNameZhLessThanOrEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("name_zh <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameZhLike(String value) {
            addCriterion("name_zh like", value, "nameZh");
            return (Criteria) this;
        }

        public Criteria andNameZhNotLike(String value) {
            addCriterion("name_zh not like", value, "nameZh");
            return (Criteria) this;
        }

        public Criteria andNameZhIn(List<String> values) {
            addCriterion("name_zh in", values, "nameZh");
            return (Criteria) this;
        }

        public Criteria andNameZhNotIn(List<String> values) {
            addCriterion("name_zh not in", values, "nameZh");
            return (Criteria) this;
        }

        public Criteria andNameZhBetween(String value1, String value2) {
            addCriterion("name_zh between", value1, value2, "nameZh");
            return (Criteria) this;
        }

        public Criteria andNameZhNotBetween(String value1, String value2) {
            addCriterion("name_zh not between", value1, value2, "nameZh");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnIsNull() {
            addCriterion("two_short_name_en is null");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnIsNotNull() {
            addCriterion("two_short_name_en is not null");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnEqualTo(String value) {
            addCriterion("two_short_name_en =", value, "twoShortNameEn");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("two_short_name_en = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnNotEqualTo(String value) {
            addCriterion("two_short_name_en <>", value, "twoShortNameEn");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnNotEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("two_short_name_en <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnGreaterThan(String value) {
            addCriterion("two_short_name_en >", value, "twoShortNameEn");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnGreaterThanColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("two_short_name_en > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnGreaterThanOrEqualTo(String value) {
            addCriterion("two_short_name_en >=", value, "twoShortNameEn");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnGreaterThanOrEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("two_short_name_en >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnLessThan(String value) {
            addCriterion("two_short_name_en <", value, "twoShortNameEn");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnLessThanColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("two_short_name_en < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnLessThanOrEqualTo(String value) {
            addCriterion("two_short_name_en <=", value, "twoShortNameEn");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnLessThanOrEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("two_short_name_en <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnLike(String value) {
            addCriterion("two_short_name_en like", value, "twoShortNameEn");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnNotLike(String value) {
            addCriterion("two_short_name_en not like", value, "twoShortNameEn");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnIn(List<String> values) {
            addCriterion("two_short_name_en in", values, "twoShortNameEn");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnNotIn(List<String> values) {
            addCriterion("two_short_name_en not in", values, "twoShortNameEn");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnBetween(String value1, String value2) {
            addCriterion("two_short_name_en between", value1, value2, "twoShortNameEn");
            return (Criteria) this;
        }

        public Criteria andTwoShortNameEnNotBetween(String value1, String value2) {
            addCriterion("two_short_name_en not between", value1, value2, "twoShortNameEn");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnIsNull() {
            addCriterion("three_short_name_en is null");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnIsNotNull() {
            addCriterion("three_short_name_en is not null");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnEqualTo(String value) {
            addCriterion("three_short_name_en =", value, "threeShortNameEn");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("three_short_name_en = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnNotEqualTo(String value) {
            addCriterion("three_short_name_en <>", value, "threeShortNameEn");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnNotEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("three_short_name_en <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnGreaterThan(String value) {
            addCriterion("three_short_name_en >", value, "threeShortNameEn");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnGreaterThanColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("three_short_name_en > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnGreaterThanOrEqualTo(String value) {
            addCriterion("three_short_name_en >=", value, "threeShortNameEn");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnGreaterThanOrEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("three_short_name_en >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnLessThan(String value) {
            addCriterion("three_short_name_en <", value, "threeShortNameEn");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnLessThanColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("three_short_name_en < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnLessThanOrEqualTo(String value) {
            addCriterion("three_short_name_en <=", value, "threeShortNameEn");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnLessThanOrEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("three_short_name_en <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnLike(String value) {
            addCriterion("three_short_name_en like", value, "threeShortNameEn");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnNotLike(String value) {
            addCriterion("three_short_name_en not like", value, "threeShortNameEn");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnIn(List<String> values) {
            addCriterion("three_short_name_en in", values, "threeShortNameEn");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnNotIn(List<String> values) {
            addCriterion("three_short_name_en not in", values, "threeShortNameEn");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnBetween(String value1, String value2) {
            addCriterion("three_short_name_en between", value1, value2, "threeShortNameEn");
            return (Criteria) this;
        }

        public Criteria andThreeShortNameEnNotBetween(String value1, String value2) {
            addCriterion("three_short_name_en not between", value1, value2, "threeShortNameEn");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeIsNull() {
            addCriterion("phone_code is null");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeIsNotNull() {
            addCriterion("phone_code is not null");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeEqualTo(String value) {
            addCriterion("phone_code =", value, "phoneCode");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("phone_code = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPhoneCodeNotEqualTo(String value) {
            addCriterion("phone_code <>", value, "phoneCode");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeNotEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("phone_code <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPhoneCodeGreaterThan(String value) {
            addCriterion("phone_code >", value, "phoneCode");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeGreaterThanColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("phone_code > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPhoneCodeGreaterThanOrEqualTo(String value) {
            addCriterion("phone_code >=", value, "phoneCode");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeGreaterThanOrEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("phone_code >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPhoneCodeLessThan(String value) {
            addCriterion("phone_code <", value, "phoneCode");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeLessThanColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("phone_code < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPhoneCodeLessThanOrEqualTo(String value) {
            addCriterion("phone_code <=", value, "phoneCode");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeLessThanOrEqualToColumn(CountryNew.Column column) {
            addCriterion(new StringBuilder("phone_code <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPhoneCodeLike(String value) {
            addCriterion("phone_code like", value, "phoneCode");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeNotLike(String value) {
            addCriterion("phone_code not like", value, "phoneCode");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeIn(List<String> values) {
            addCriterion("phone_code in", values, "phoneCode");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeNotIn(List<String> values) {
            addCriterion("phone_code not in", values, "phoneCode");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeBetween(String value1, String value2) {
            addCriterion("phone_code between", value1, value2, "phoneCode");
            return (Criteria) this;
        }

        public Criteria andPhoneCodeNotBetween(String value1, String value2) {
            addCriterion("phone_code not between", value1, value2, "phoneCode");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private CountryNewExample example;

        protected Criteria(CountryNewExample example) {
            super();
            this.example = example;
        }

        public CountryNewExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.guonl.model.CountryNewExample example);
    }
}